<?php

/**
 * Manufacturers form.
 *
 * @package    form
 * @subpackage manufacturers
 * @version    SVN: $Id: sfPropelFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class ManufacturersForm extends BaseManufacturersForm
{
  public function configure()
  {
  unset($this['created_at']);
  unset($this['updated_at']);
  unset($this['deleted_at']);
  $this->widgetSchema['manufacturers_image'] = new sfWidgetFormInputFile();
  $this->validatorSchema['manufacturers_image'] = new sfValidatorFile();
  $this->validatorSchema['manufacturers_name'] = new sfValidatorString(array('min_length' => 2, 'max_length' => 50), array( 'min_length' => '2 character minumun', 'max_length' => '50 character maximum'));
  //$this->validatorSchema['manufacturers_image'] = new sfValidatorUrl(array('required' => false), array('invalid' => 'This Url is not valid'));
  $this->embedI18n(LanguagesPeer::getCodesInArray());
  }
}
